package com.attendance.mapper;

import com.attendance.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {

    void insert(User user);

    User selectOneByEmail(String email);

    User searchInfoByEmail(String email);

    int renameByEmail(@Param("email") String email, @Param("newName") String newName);

    User selectOneById(Integer user_id);

}
